home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Enigma Amiga Life 109
/
EnigmaAmiga109CD.iso
/
kit internet
/
e-mail
/
yam2.0
/
rexx
/
handlelha.yam
< prev
next >
Wrap
Text File
|
1999-03-06
|
820b
|
21 lines
/* HandleLHA.yam - View or extract attached LhA files in YAM */
/* Create a new MIME viewer with the following settings: */
/* Attachment type = application/x-lha */
/* Extension = lha */
/* Viewer = rx YAM:rexx/HandleLHA.yam %s */
/* LhA and RX must be in your AmigaDOS search path */
PARSE ARG filename
ADDRESS YAM
OPTIONS RESULTS
'Request BODY "What shall I do with this archive?" GADGETS "View contents|Extract files|Cancel"'
IF RESULT=1 THEN DO
ADDRESS COMMAND 'LhA >CON:////HandleLhA/WAIT/CLOSE v 'filename
END
ELSE IF RESULT=2 THEN DO
'RequestString BODY "Enter the destination directory:" STRING "RAM:"'
IF RC=0 THEN DO
ADDRESS COMMAND 'LhA >CON:////HandleLhA/CLOSE x 'filename' 'RESULT
END
END